package com.paziy.calc;

import com.paziy.calc.operations.Addition;
import com.paziy.calc.operations.Operation;

public class Calculator {
	public static double calculate(Operation operation, double...operands) {
		return operation.perform(operands); 
	}
	
	public static final void main(String[] args) {
		System.out.println("1 + 3 + 5 + 7 = " + Calculator.calculate(new Addition(), 1, 3, 5, 7));
		
		System.out.println(new Addition().perform(1,2,3,4,5,6));
	}
}
